package com.cherish.pattern.prototype.deep;

import java.io.Serializable;

/**
 * @Classname JinGuBang
 * @Date 2019/4/7 13:22
 * @Author admin
 * @Description TODO
 */
public class JinGuBang implements Serializable {

    private float h;
    private float d;

    public JinGuBang() {
        this.h = 200;
        this.d = 10;
    }

    public void bigger(){
        this.h *=2 ;
        this.d *=2 ;
    }

    public void smaller(){
        this.h *=2 ;
        this.d *=2 ;
    }

    public float getH() {
        return h;
    }

    public void setH(float h) {
        this.h = h;
    }

    public float getD() {
        return d;
    }

    public void setD(float d) {
        this.d = d;
    }
}
